from django.contrib import admin
from django.urls import path, include, re_path

from demo import views

urlpatterns = [
    path('login/', views.test),
    # path('login/<str:info>/', views.test),
    # login/123/
    # path('login/<int:info>/', views.test),
    # login/abc123/
    # path('login/<slug:info>/', views.test),
    # path('login/<uuid:info>/', views.test),
    path('login/<path:info>/', views.test),
    re_path('^re_test/(?P<info>[0-9a-z/]+)$',views.re_test),
    re_path('^nav/(?P<classes>[a-zA-Z1-9]+)/$',views.nav),
    path('nav/404', views.not_found,name='not_find'),
    path('index/', views.index, name='index'),
    path('classes/add',views.add_classes),
    path('classes/get',views.get_classes),
    path('classes/update',views.update_classes),
    path('classes/delete',views.del_classes),
    path('classes/find',views.find_conditions),
    path('classes/test1',views.test1),
    path('classes/getarticle',views.get_article),
    path('classes/onetomany',views.onetomany),
    path('classes/manytomany',views.manytomany),
]

